<style>
.class_right {
	width: 100%;
	height: 307px;
	position: relative;
	padding-left: 20px;
	background: url(__PUBLIC__/BoxEdu/Images/mid_bg.png) top left repeat-y #FFF;
	border: 1px solid #e8e8e8;
	border-left: none;
}
.tit {
	font-size: 16px;
	color: #494949;
	padding: 10px 0 10px 0;
	line-height: 35px;
	height: 48px;
	border-bottom: 1px solid #e8e8e8;
	margin-right: 20px;
}
.band-login {
	padding: 5px 20px 20px 20px;
	background: rgba(0,0,0,0.7);
	position: absolute;
	width: 100%;
	border-radius: 2px;
	left: 0px;
	top: 0px;
	height: 307px;
	z-index: 999;
}
.class_right li {
	height: 42px;
	position: relative;
	display: block;
	line-height: 42px;
	font-size: 14px;
	color: #494949;
	margin-top: 10px;
}
.class_right .lv1 {
	display: inline-block;
	background-color: #68c04a;
	color: #fff;
	height: 20px;
	width: 20px;
	text-align: center;
	line-height: 20px;
	border-radius: 50%
}
.btn-keju {
	background-color: #ff6600;
	color: #ffffff;
	margin-top: 5px;
}
.btn-keju:hover, .btn-keju:focus, .btn-keju.focus {
	color: #ffffff;
}
</style>

<div class="class_right hide_content mgb20" id="earn">
				<if condition="!$user_info['subjectids']">
								<div class="band-login" align="center">
												<h4  style="color:#FFF; margin-top:100px; "  >开通课程后可领取10000学币</h4>
												<a href="/Index/subjectList" data-type="modal" class="btn  btn-keju mgt10">正式开通课程</a> </div>
				</if>
				<if condition="$red_packets">
								<div class="band-login" align="center">
												<volist name="red_packets" key="k" id="vo">
																<li style=" height:auto; line-height:20px; ">
																				<div class="fl col-xs-8" style="color:#fff; text-align:left; padding:0px;"> <{$vo.title}>  , 获得 <font><{$vo.num}></font> 待激活学币</div>
																				<div class="col-xs-4" style="padding:0px;"> <a  data-type="ajaxGet" style="margin:0px;" href="/User/get_frozen_capital/id/<{$vo['id']}>" class="btn btn-keju get_frozen_capital">领取学币</a> </div>
																</li>
												</volist>
								</div>
				</if>
				<div class="tit"> 领取学币（1学币=1元，学币可提现）</div>
				<ul style="margin-right:20px; ">
								<li>待激活：<strong style="color:#d9534f; font-size:18px"><{:intval($user_info['frozen_capital'])}></strong> 学币 可使用：<strong style="color:#5cb85c; font-size:18px"><{$user_info['money']}></strong>学币</li>
								<li>
												<div class="fl"> <span class="lv1">1</span> &nbsp;&nbsp;邀请同学一块起学 </div>
												<a  data-type="modal" href="/User/modal_earn" class="btn btn-keju fr">领取学币</a> </li>
								<li>
												<div class="fl"><span class="lv1">2</span> &nbsp;&nbsp;	有<{$qu_all}> 个问题请你帮助</div>
												<a  data-type="modal"  href="/User/modal_earn_2" class="btn btn-keju fr">领取学币</a> </li>
								<li>
												<div class="fl"> <span class="lv1">3</span> &nbsp;&nbsp;申请校园合伙人  剩余：<{$agentLimit}> 名额</div>
												<a  target="_blank"  href="/User/apply_agent"  class="btn btn-keju fr">立即申请</a> </li>
				</ul>
</div>
<script>
	$(".get_frozen_capital").on("ajaxGetSuccess",function(e,content){
		 var data= JSON.parse(content);
	 	hiApp.alert(data.msg);
			$(this).parents("li").remove();
			if($(".get_frozen_capital").length==0){
			  window.location.reload();	
			}
		})
	</script> 





